package com.fangcun.mapper;

import java.util.List;
import java.util.Map;

import com.fangcun.bean.admin.user.response.RolePermission;
import com.fangcun.entity.AdminRolePermission;

public interface AdminRolePermissionMapper {
	int deleteByPrimaryKey(Long id);

	int insert(AdminRolePermission record);

	int insertSelective(AdminRolePermission record);

	AdminRolePermission selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AdminRolePermission record);

	int updateByPrimaryKey(AdminRolePermission record);

	int deleteByRoleId(Long roleId);

	/** 获取角色权限 **/
	List<RolePermission> getRolePermissionList(Map<String, Object> param);

	List<Long> getParentIds(List<Long> ids);
}